package cn.com.http.httpheader;

import cn.com.http.httpmessage.HttpMessage;

public class HttpRequest extends HttpMessage{

	@Override
	protected HttpTitle newHttpTitle1() {
		return new HttpMethod();
	}

	@Override
	protected HttpTitle newHttpTitle2() {
		return new HttpUrl();
	}

	@Override
	protected HttpTitle newHttpTitle3() {
		return new HttpVersion();
	}

	public HttpMethod getMethod(){
		return (HttpMethod) getTitle1();
	}
	
	public HttpVersion getVersion(){
		return (HttpVersion) getTitle3();
	}
	
	public HttpUrl getUrl(){
		return (HttpUrl) getTitle2();
	}
}
